package com.liuyou.main;

import com.liuyou.tax.SaleOrder;
import com.liuyou.tax.USTaxFactory;

public class StrategyClient {
    public static void main(String[] args) {
        SaleOrder saleOrder = new SaleOrder(new USTaxFactory());
        saleOrder.calculate();
    }
}


















/*package com.liuyou.main;

import com.liuyou.duck2.BadFlyBehavior;
import com.liuyou.duck2.BeiJingDuck;
import com.liuyou.duck2.ToyDuck;
import com.liuyou.duck2.WildDuck;

public class StrategyClient {
    public static void main(String[] args) {
        WildDuck wildDuck = new WildDuck();
        wildDuck.speak();
        wildDuck.swim();
        wildDuck.fly();

        BeiJingDuck beiJingDuck = new BeiJingDuck();
        beiJingDuck.speak();
        beiJingDuck.swim();
        beiJingDuck.fly();
        beiJingDuck.setFlyBehavior(new BadFlyBehavior());
        beiJingDuck.fly();

        ToyDuck toyDuck = new ToyDuck();
        toyDuck.speak();
        toyDuck.swim();
        toyDuck.fly();

    }
}*/




/*
package com.liuyou.main;

import com.liuyou.duck.BeiJingDuck;
import com.liuyou.duck.ToyDuck;
import com.liuyou.duck.WildDuck;

public class StrategyClient {
    public static void main(String[] args) {
        WildDuck wildDuck = new WildDuck();
        wildDuck.speak();
        wildDuck.swim();
        wildDuck.fly();

        BeiJingDuck beiJingDuck = new BeiJingDuck();
        beiJingDuck.speak();
        beiJingDuck.swim();
        beiJingDuck.fly();

        ToyDuck toyDuck = new ToyDuck();
        toyDuck.speak();
        toyDuck.swim();
        toyDuck.fly();
    }
}
*/
